package view;

import java.awt.Dimension;

import javax.swing.JFrame;

import controller.MenuFrameController;

public class MainFrame extends JFrame {

	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private static MenuFrameController menuController;
	private static MenuFrame menu;
	
	public MainFrame() {
		int width = (int) (getToolkit().getScreenSize().getWidth() * 0.5);
		int height = (int) (getToolkit().getScreenSize().getHeight() * 0.5);
		
		setTitle("Lyapunov's fractal");
		setSize(new Dimension(width, height));
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		menu = new MenuFrame();
		setJMenuBar(menu);
		menuController = new MenuFrameController(menu);
		
		setVisible(true);
	}

}
